//
//  ViewController.m
//  UI_Homework_Day6_02
//
//  Created by 黄威 on 16/5/10.
//  Copyright © 2016年 黄威. All rights reserved.
//

#import "ViewController.h"
#import "Picview.h"
@interface ViewController ()

@end

@implementation ViewController


/*
 
 1.完成1个相册 
 2.实现UIPageControl和UIScrollView的关联 
 3.试着完成无限滚动功能
 4.time
 5.添加缩放功能,并且在翻页之后,变化的视图恢复原 样
 
 
 */

- (void)viewDidLoad {
    [super viewDidLoad];
    
    [self createPicView];
    
    
}

- (void)createPicView{


    Picview *view = [[Picview alloc]initWithFrame:CGRectMake(0, 0, 375, 666)];
    
    view.center = self.view.center;
    
    [self.view addSubview:view];
    
    [view release];
    
    UIImage *image1 = [UIImage imageNamed:@"1.jpg"];
    UIImage *image2 = [UIImage imageNamed:@"2.jpg"];
    UIImage *image3 = [UIImage imageNamed:@"3.jpg"];
    UIImage *image4 = [UIImage imageNamed:@"4.jpg"];
    UIImage *image5 = [UIImage imageNamed:@"5.jpg"];
    UIImage *image6 = [UIImage imageNamed:@"6.jpg"];
    UIImage *image7 = [UIImage imageNamed:@"7.jpg"];
    UIImage *image8 = [UIImage imageNamed:@"8.jpg"];
    UIImage *image9 = [UIImage imageNamed:@"9.jpg"];
    UIImage *image10 = [UIImage imageNamed:@"10.jpg"];
    UIImage *image11 = [UIImage imageNamed:@"1.jpg"];
    UIImage *image12 = [UIImage imageNamed:@"10.jpg"];

    

    [view addpicture:@[image11, image1, image2, image3, image4, image5, image6, image7, image8, image9, image10, image12]];


  

}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
